package com.kaoshi.management.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kaoshi.management.pojo.XtManagement;
import com.kaoshi.management.pojo.XtPermissions;
import com.kaoshi.management.mapper.XtPermissionsMapper;
import com.kaoshi.management.service.XtPermissionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-11-07
 */
@Service
public class XtPermissionsServiceImpl extends ServiceImpl<XtPermissionsMapper, XtPermissions> implements XtPermissionsService {

    @Override
    public Page<XtPermissions> getPageList(Integer current, Integer pageSize, XtPermissions xtPermissions) {
        Page<XtPermissions> page = new Page<>(current, pageSize);

        LambdaQueryWrapper<XtPermissions> wrapper = new LambdaQueryWrapper<>();

        return baseMapper.selectPage(page, wrapper);
    }

}
